

'''
Reads streamlines from an h5py archive...
'''

def readStreamlines(x, y, f):
    slines = list()
    
    groups = f.keys()
    
    for mem in groups:
        dir = str(mem).zfill(4) + '/x' + str(x).zfill(3) + '/y' + str(y).zfill(3)
    
        xlst = list(f[dir][0])
        ylst = list(f[dir][1])
        zlst = 0.0 * len(list(f[dir][0]))
    
        slines.append([xlst,ylst,zlst])
        
    return slines   